/**
 * 跳转外部系统的链接配置
 * approve:审批
 * attendance:考勤
 * finance:财务(后端返回)
 * psi:进销存
 * budget:预算
 * groupfinance:集团账套(后端返回)
 * nocode:无代码
 * invoice:发票管理
 * importData:导账
 * order:订单中心
 * personApp:人事管理
 */
let webUrl;
console.log(process.env.NODE_ENV, 'process.env.NODE_ENV');
if (process.env.NODE_ENV == "checkTest" || process.env.NODE_ENV == "development") {
  webUrl = {
    approve: "http://8.142.139.164:8853",
    attendance: "http://8.142.139.164:55006",
    psi: "http://8.142.139.164:8086",
    budget: "http://8.142.139.164:55005",
    nocode: "http://8.142.139.164:56668",
    invoice: "http://8.142.139.164:55003",
    importData: "http://import.91yikuaiji.com/ImportZT/ZTImport.htm",
    order: "http://order.91yikuaiji.com",
    personApp: "http://8.142.139.164:53105/#/pages/index/index"
  };
} else if (process.env.NODE_ENV == "pre") {
  webUrl = {
    approve: "http://39.107.26.138:8853",
    attendance: "http://39.107.26.138:55006",
    psi: "http://39.107.26.138:8086",
    budget: "http://39.107.26.138:55005",
    nocode: "http://39.107.26.138:56668",
    invoice: "http://8.142.139.164:55003",
    importData: "http://import.91yikuaiji.com/ImportZT/ZTImport.htm",
    order: "http://order.91yikuaiji.com",
    personApp: "http://8.142.139.164:53105/#/pages/index/index"
  };
} else if (process.env.NODE_ENV == "prod") {
  webUrl = {
    approve: "https://approve.yundaizhang.com.cn",
    attendance: "https://attendance.yundaizhang.com.cn:55006",
    psi: "https://psi.yundaizhang.com.cn",
    budget: "https://budget.zhangsanfeng.vip:55005",
    nocode: "http://nocode.yundaizhang.com.cn",
    invoice: "https://pgj.yundaizhang.com.cn:55003",
    importData: "https://upgrade.yundaizhang.com.cn:8442/ImportZT/ZTImport.htm",
    order: "https://order.yundaizhang.com.cn:8446",
    personApp: "https://unify.yundaizhang.com.cn:8758/#/pages/index/index"
  };
} else if (process.env.NODE_ENV == "newProd") {
  webUrl = {
    approve: "https://approve.zhangsanfeng.vip",
    attendance: "https://attendance.zhangsanfeng.vip",
    psi: "https://psi.zhangsanfeng.vip",
    budget: "https://budget.zhangsanfeng.vip",
    nocode: "https://nocode.zhangsanfeng.vip",
    invoice: "https://invoice.zhangsanfeng.vip",
    importData: "https://upgrade.yundaizhang.com.cn:8442/ImportZT/ZTImport.htm",
    order: "https://order.yundaizhang.com.cn:8446",
    personApp: "https://personnel.zhangsanfeng.vip/#/pages/index/index"
  };
}

export default webUrl;
